package me.zhengjie.modules.repository;

import me.zhengjie.modules.domain.Api;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface ApiMapper {

    int insertApi(Api api);

    int deleteApiById(Api api);

    int updateApiById(Api api);

    Api selectApiById(Long id);

    List<Api> selectAllByPageForConditions(Map<String,Object> map);

    int selectAllByPageForConditionsToTotal(Map<String,Object> map);

    Api selectApiByVariableName(String VariableName);

}
